#Makefile for systems with GNU tools
CC = gcc
CFLAGS = -g -O2 -Wall #-Wshadow
OBJS = myftpserver.o err_msg.o commands.o utilities.o
LCYPT = -lcrypt

ftpserver: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LCYPT)
.c.o:
	$(CC) -std=gnu99 $(CFLAGS) -c $*.c 

clean:
	rm -f *.o *.swp ftpserver
